var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            im.fieldEffect_PlayFieldSound("advStory/Buff7", 100);
            im.playerMessage(5, "进入遗忘的记忆。");
            im.dispose();
            im.getPlayer().setGender(0);
            im.onZeroInfo(199);
            im.warp(328090210, 0, false)
        }
    }
};